package com.chinasofti.zbest.dao.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author zbest
 * @since 2019-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Zborder implements Serializable {

private static final long serialVersionUID=1L;



    /**
     * 订单ID
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    private String categoryName;

    private String productPicture;

    /**
     * 订单编号
     */
    private String orderNum;

    /**
     * 商品id
     */
    private Integer productId;

    /**
     * 下单人id
     */
    private Integer userId;

    /**
     * 下单人用户名
     */
    private String username;

    /**
     * 下单时间
     */
    private Date createTime;

    /**
     * 订单状态
     */
    private String orderStatus;


    private Integer productCount;

    /**
     * 单价
     */
    private BigDecimal productPrice;

    /**
     * 小计
     */
    private BigDecimal subtotal;

    /**
     * 支付金额
     */
    private BigDecimal orderMoney;


}
